﻿<UserControl x:Class="CoTime.View.UserControls.UCNote"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             xmlns:my="clr-namespace:CoTime"
             d:DesignHeight="250" d:DesignWidth="300">
    <UserControl.Resources>
        <Style x:Key="IconTooltip" TargetType="{x:Type ToolTip}">
            <Setter Property="HorizontalOffset" Value="10"/>
            <Setter Property="VerticalOffset" Value="5"/>
            <Setter Property="Background" Value="LightBlue"/>
            <Setter Property="Foreground" Value="Gray"/>
            <Setter Property="FontSize" Value="14"/>
        </Style>
    </UserControl.Resources>
    <Grid x:Name="UIGrid" PreviewKeyDown="UIGrid_PreviewKeyDown">
        <StackPanel x:Name="UIStackPanel" my:EnterKeyTraversal.IsEnabled="True">

        </StackPanel>
        <Image Width="25" Height="25"
               Source="../../Images/moveToToday.png"
               VerticalAlignment="Top" 
               HorizontalAlignment="Right" MouseLeftButtonDown="Image_MouseLeftButtonDown" Cursor="Hand">
            <Image.ToolTip>
                <ToolTip Style="{StaticResource IconTooltip}">移动至To Do Today</ToolTip>
            </Image.ToolTip>
        </Image>
    </Grid>
</UserControl>
